package stage_1_module_2.code.homework_3;

public class WorkTest implements Iscall,Isnet {

    public void servicecall(int i, Card c) {
        System.out.println("通话中");
        c.display();
    }

    public void servicenet(int i, Net n) {
        System.out.println("冲浪呢");
        n.display();
    }
    public static void main(String[] args) {
        Card c = new Card();
        c.setNum("136813813138");
        c.setName("阿桂");
        c.setBalance(9999);
        Net n = new Net();
        n.setnetAmount(1024);
        n.setconsumeAmount(8888);
        Iscall w1 = new WorkTest();
        w1.servicecall(1, c);
        Isnet n1 = new WorkTest();
        n1.servicenet(2, n);
    }
}
